﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="menu_list.aspx.cs" Inherits="AnyOffice.general.system.menu.menu_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>菜单设置</title>
    <script Language="JavaScript">
function delete_menu(menu_id,menu_name)
{
 msg='确认要删除主菜单分类 \''+menu_name+'\' 么？下级子菜单也将被删除';
 if(window.confirm(msg))
 {
  URL="delete.aspx?menu_id=" + menu_id;
  parent.menu_edit.location=URL;
 }
}
</script>
</head>
<body class="bodycolor" style="padding-right:0;" topmargin="5" leftmargin="0">
    <form id="form1" runat="server">
     <div class="main_div">
    <table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
      <tr>
        <td class="tab_ti">菜单主分类设置
        </td>
      </tr>
    </table>    
        <asp:Repeater ID="rptMenu" runat="server">
        <HeaderTemplate>
        <table border="0" cellspacing="0" width="100%" class="tab_pub" cellpadding="0" align="center" >
         <tr>
           <td class="TableHeader" align="center" colspan="50">
             <input type="button" value="增加菜单主分类" class="bnt_Add" onclick="parent.menu_edit.location='new.aspx';">
           </td>
         </tr>
        </HeaderTemplate>
        <ItemTemplate>
        <tr class="TableContent" title="<%#Eval("MenuName")%>">
            <td>
               <img src="/images/menu/<%#Eval("Image")%>.gif" align="absmiddle">&nbsp;<%#Eval("MenuId")%>&nbsp;<b><%#Eval("MenuName")%></b>
            </td>
            <td nowrap align="center">
              <a href="edit.aspx?menu_id=<%#Eval("MenuId")%>" target="menu_edit">编辑</a>&nbsp;
              <a href="func.aspx?menu_id=<%#Eval("MenuId")%>" target="menu_edit"> 下一级</a>&nbsp;
              <a href="javascript:delete_menu('<%#Eval("MenuId")%>','<%#Eval("MenuName")%>');"> 删除</a>
            </td>
        </tr>
        </ItemTemplate>
        <FooterTemplate>
        </table>
        </FooterTemplate>
        </asp:Repeater>
        </div>
    </form>
</body>
</html>
